<%@ page import="psl.UserAccount" %>
<%--
  Created by IntelliJ IDEA.
  User: phiteshkumar
  Date: Mar 21, 2007
  Time: 6:36:29 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="TagXML" prefix="Search" %>
<%
    UserSession moUserSession = (UserSession) session.getAttribute ("UserSession");
    UserAccount moUserAccount = (UserAccount) moUserSession.getCurrentPage ();
    String msCondition = moUserAccount.msCondition== null ? "" : moUserAccount.msCondition;
%>
<html>
  <head>
      <title>Item Bill</title>
      <link href='Stylesheet.css' type='text/css' rel='stylesheet'>
      <script type='text/javascript' src='ROController.js' language='JavaScript'></script>
  </head>
  <body>
  <form name='DataForm' onsubmit='return false;'>
    <input type='hidden' name='action_fld'>
    <table border="0" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2">
                <%@ include file="ROCommon/Head.jsp" %>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <table width="100%">
                    <tr height="22">
                        <td bgcolor="salmon" align="left"></td>
                        <td bgcolor="salmon" align="center"><font color='black' size='3' style='font-weight:bold;'>User Account</font></td>
                        <td width="35" bgcolor="burlywood" align="right"><a href="javascript:performHome()"><font color='black' size='2' style=font-weight:bold;>Home</font></a></td>
<%                      if(moUserSession.msLogin!=null)
                        {
%>
                        <td width="35" bgcolor="burlywood" align="right"><a href="javascript:logout()"><font color='navy' size='2' style=font-weight:bold;>LogOut</font></a></td>
<%
                        }
%>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top" >
                <table width=100% bgcolor="gainsboro" cellpadding="0" cellspacing="0">
                    <tr>
                        <td bgcolor="silver" height="25" align="left" colspan="2"><font style="font-size:17;color:black;">Search Seaction</font></td>
                    </tr>
                    <tr>
                        <td bgcolor="beige">
                            <table class="registere" cellpadding="0" cellspacing="2" border="0">
                                <tr>
                                     <td >Order No. :</td>
                                     <td>
                                         <input type=text name=orderno value=''>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td>Category :</td>
                                     <td>
                                         <input type=text name='category' value=''/>
                                     </td>
                                 </tr>
                                 <tr>
                                     <td>Order DateFrom :</td>
                                     <td> <input type=text name=odatefrom>
                                     To: <input type=text name=odateto>(DD/MM/YYYY)</td>
                                 </tr>
                                 <tr>
                                 </tr>
                                 <tr>
                                     <td>Product PriceFrom :</td>
                                     <td> <input type=text name=propricefrom>
                                     To: <input type=text name=propriceto> </td>
                                 </tr>
                                 <tr>
                                     <td>Oeder QuantityFrom :</td>
                                     <td > <input type=text name=oqtyfrom>
                                     To: <input type=text name=oqtyto> </td>
                                 </tr>
                                 <tr>
                                     <td>Order Satus:</td>
                                     <td>
                                         <select style="width:34%; font-weight:bold;font-family:tahoma;" name=ostatus>
                                             <option value=''></option>
                                             <option value='dl'>DL</option>
                                             <option value='ndl'>NDL</option>
                                         </select>
                                     </td>
                                 </tr>
                           </table>
                       </td>
                    </tr>
                    <tr>
                        <table width="100%">
                            <tr>
                                <td bgcolor="white" colspan="2" align="left">
                                    <button style='height:23px;width:50px;' onMouseOver="className='activeImageButton';"
                                      onMouseOut="className='imageButton';" class='imageButton' id='save'
                                      onclick="performSearch();" accesskey='S' type='button'>
                                        <u>S</u>earch
                                    </button>
                                    &nbsp;
                                    <button style='height:23px;width:55px;' onMouseOver="className='activeImageButton';"
                                      onMouseOut="className='imageButton';" class='imageButton' id='cancel'
                                      onclick="performHome();" accesskey='C' type='button'>
                                        <u>C</u>ancel
                                    </button>
                                    &nbsp;
                                    <button style='height:23px;width:55px;' disabled onMouseOver="className='activeImageButton';"
                                      onMouseOut="className='imageButton';" class='imageButton' id='edit'
                                      onclick="performEdit();" accesskey='E' type='button'>
                                        <u>E</u>dit
                                    </button>
                                    &nbsp;
                                    <button style='height:23px;width:165px;' onMouseOver="className='activeImageButton';"
                                      onMouseOut="className='imageButton';" disabled class='imageButton' id='continue'
                                      onclick="performContinue();" accesskey='C' type='button'>
                                        <u>C</u>ontinue With All Item
                                    </button>
                                </td>
                            </tr>
                        </table>
                    </tr>
                </table>
            </td>
         </tr>
  <%
      if(moUserAccount.mbflag)
        {
  %>
        <tr>
            <td align="center" valign="top">
                <table width="100%">
                    <tr><td bgcolor="silver" height="25" align="left" colspan="2"><font style="font-size:17;color:black;">Search Result</font></td></tr>
                    <tr>
                        <td bgcolor="beige">
                            <Search:ROTag ROType="UserAccount"
                                  SQLQuery="Select * From tempdata" ROSession='<%=moUserSession%>'
                                  ROPage='<%=moUserAccount%>' ROCondition='<%=msCondition%>'>
                            </Search:ROTag>
                        </td>
                    </tr>
                </table>
            </td>            
        </tr>
        <tr>
            <td>
                &nbsp;
                <button style='height:23px;width:50px; background-color:yellowgreen' onMouseOver="className='activeImageButton';"
                  onMouseOut="className='imageButton';" class='imageButton' id='start'
                  onclick="performStart();" accesskey='S' type='button'>
                    <u>S</u>tart
                </button>
                &nbsp;
                <button style='height:23px;width:70px;' onMouseOver="className='activeImageButton';"
                  onMouseOut="className='imageButton';" class='imageButton' id='previous'
                  onclick="performPrevious();" accesskey='P' type='button'>
                    <u>P</u>revious
                </button>
                &nbsp;
                <button style='height:23px;width:50px;' onMouseOver="className='activeImageButton';"
                  onMouseOut="className='imageButton';" class='imageButton' id='next'
                  onclick="performNext();" accesskey='N' type='button'>
                    <u>N</u>ext
                </button>
                &nbsp;
                <button style='height:23px;width:50px; background-color:yellowgreen;' onMouseOver="className='activeImageButton';"
                  onMouseOut="className='imageButton';" class='imageButton' id='end'
                  onclick="performEnd();" accesskey='E' type='button'>
                    <u>E</u>nd
                </button>
            </td>
        </tr>
        <%
            moUserAccount.msCondition="";
         }
        %>
      </table>
    <%

        if(moUserSession.msConform!=null)
        {

    %>
          &nbsp;&nbsp;
          <div class='conformMessage_body'>
              <table width=100% border=0 cellspacing=1 cellpadding=0>
                  <tr>
                      <td align=center><b><%=moUserSession.msConform%></b></td>
                  </tr>
              </table>
          </div>
          <%
    }
    if(moUserSession.msError!=null)
    {

%>
      &nbsp;&nbsp;
      <div class='message_body'>
          <table width=100% border=0 cellspacing=1 cellpadding=0>
              <tr>
                  <td width=10>
                     <img src='img/feedback-error.gif'>&nbsp;
                  </td>
                  <td><b><%=moUserSession.msError%></b></td>
              </tr>
          </table>
      </div>
      <%
}
      %>
    </form>
  </body>
</html>